package vip.xiaonuo.biz.modular.article.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import vip.xiaonuo.common.pojo.CommonEntity;
import vip.xiaonuo.common.pojo.CommonFile;
import java.math.BigDecimal;
import java.util.List;

@Data
@TableName(value = "BIZ_ARTICLE", autoResultMap = true)
public class BizArticle extends CommonEntity {

    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("栏目id")
    private String columnId;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("封面")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private CommonFile cover;

    @ApiModelProperty("介绍视频")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private CommonFile video;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("浏览量")
    private Integer viewCount;

    @ApiModelProperty("价格")
    private BigDecimal price;

    @ApiModelProperty("资源链接")
    private String link;

    @ApiModelProperty("是否可见")
    private String visible;

    @ApiModelProperty("标签")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> tags;

    @ApiModelProperty("排序码")
    private Integer sortCode;
}
